<template>
  <div class="flex home">
    <div class="home_l">左侧</div>
    <div class="flex_unit home_r">
      <div class="flex home_header">
        <div class="hd_img">
          <img src="@/assets/evaluation/user.png" alt="" />
        </div>
        <div class="flex_unit hd_info">
          <div class="hd_name">
            <span>Alice</span>
            <img src="@/assets/evaluation/icon.png" alt="" />
          </div>
          <div class="hd_time">
            <span>更新时间：2020-09-30 14:55</span>
            <button>未测评</button>
          </div>
        </div>
        <div class="hd_icon">
          <img src="@/assets/evaluation/wx.png" alt="" />
        </div>
      </div>
      <div class="flex home_info">
        <div class="flex_unit">年龄区间：18-25周岁</div>
        <div class="flex_unit">最高学历：本科</div>
        <div class="flex_unit">上一职业：检验员</div>
        <div class="hi_more" @click="godetails">详情</div>
      </div>
      <div class="home_content">
        <div class="hc_unit">
          <div class="hc_tit">竞争力评估</div>
          <div class="flex chart_wrap">
            <div class="chart_img">
              <img src="@/assets/evaluation/chart.png" alt="" />
            </div>
            <div class="chart_info">
              <div class="chart_into_unit">
                <span>社交竞争力</span>
                <el-button class="btn_unit active" round
                  >8.2 社交达人型</el-button
                >
              </div>
              <div class="chart_into_unit">
                <span>领袖潜能</span>
                <el-button class="btn_unit active" round
                  >8.2 社交达人型</el-button
                >
              </div>
              <div class="chart_into_unit">
                <span>持续学习力</span>
                <el-button class="btn_unit active" round
                  >8.2 社交达人型</el-button
                >
              </div>
              <div class="chart_into_unit">
                <span>适应力</span>
                <el-button class="btn_unit active" round
                  >8.2 社交达人型</el-button
                >
              </div>
              <div class="chart_into_unit">
                <span>逻辑思维</span>
                <el-button class="btn_unit active" round
                  >8.2 社交达人型</el-button
                >
              </div>
              <div class="chart_into_unit">
                <span>自我管理</span>
                <el-button class="btn_unit active" round
                  >8.2 社交达人型</el-button
                >
              </div>
            </div>
          </div>
        </div>
        <div class="hc_unit">
          <div class="hc_tit">综合评价</div>
          <div class="hc_txt">
            通过对您综合能力的评估，您有成为优秀营销员的潜力，建议您与营销员主管做进一步的沟通，深入了解您的现状及职业发展等，让友邦在未来帮助您提升个人能力和实现职业愿景。
          </div>
        </div>
      </div>
      <div class="hc_footer">
        <el-button class="btn_confirm" @click="dialogFormVisible = true"
          >预约面试</el-button
        >
        <el-button class="btn_confirm">邀请面试</el-button>
        <el-button class="btn_cancel">重测</el-button>
      </div>
    </div>
    <el-dialog class="modal" title="预约面试" :visible.sync="dialogFormVisible">
      <div class="flex home_header">
        <div class="hd_img">
          <img src="@/assets/evaluation/user.png" alt="" />
        </div>
        <div class="flex_unit hd_info">
          <div class="hd_name">
            <span>Alice</span>
            <img src="@/assets/evaluation/icon.png" alt="" />
          </div>
          <div class="hd_time">
            <span>登记：2020-09-30 14:55</span>
          </div>
        </div>
      </div>
      <el-form :model="form">
        <el-form-item label="预约日期" :label-width="formLabelWidth">
          <el-date-picker v-model="value" type="date" placeholder="选择日期">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="开始日期" :label-width="formLabelWidth">
          <el-date-picker v-model="value" type="date" placeholder="选择日期">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="结束日期" :label-width="formLabelWidth">
          <el-date-picker v-model="value" type="date" placeholder="选择日期">
          </el-date-picker>
        </el-form-item>
      </el-form>
      <div slot="footer" class="hc_footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button class="btn_confirm" @click="dialogFormVisible = false"
          >确 定</el-button
        >
      </div>
    </el-dialog>
  </div>
</template>
<script>
export default {
  name: "Home",
  data() {
    return {
      value: '',
      formLabelWidth: "1.2rem",
      dialogFormVisible: false,
      form: {
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: "",
      },
    };
  },
  methods: {
    godetails(){
      this.$router.push('/talentpool')
<<<<<<< HEAD
    },
=======
    }
>>>>>>> 09b868de12a5afa443c39651869023e16bdba3ca
  },
};
</script>
<style lang="less" scoped>
.home_header {
  padding: 0.2rem 0.3rem;
  .flex {
    justify-content: center;
  }
  .hd_img {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    margin-right: 0.2rem;
    img {
      display: block;
      width: 100%;
    }
  }
  .hd_name {
    font-size: 0.15rem;
    color: #5a6b80;
    img {
      display: inline-block;
      width: 0.2rem;
      height: 0.2rem;
      border-radius: 50%;
      margin-left: 0.1rem;
      vertical-align: -20%;
    }
  }
  .hd_time {
    font-size: 0.12rem;
    color: #5a6b80;
    button {
      color: #f5a623;
      border: 1px solid #f5a623;
      border-radius: 2px;
      font-size: 0.12rem;
      background: #fff;
      margin-left: 0.1rem;
    }
  }
  .hd_icon {
    img {
      display: block;
      width: 0.3rem;
      height: 0.3rem;
      border-radius: 50%;
    }
  }
}
.home_info {
  background: #fafafa;
  font-size: 0.14rem;
  color: #5a6b80;
  height: 0.44rem;
  line-height: 0.44rem;
  padding: 0 0.3rem;
  .hi_more {
    width: 0.4rem;
    color: #1fa9da;
  }
}
.home_content {
  .hc_unit {
    .hc_tit {
      width: 1.2rem;
      height: 0.2rem;
      line-height: 0.2rem;
      text-align: center;
      margin: 0.2rem auto;
      font-size: 0.16rem;
      font-weight: bold;
      color: #333333;
      background: url("../../assets/evaluation/tit_bg.png") no-repeat;
      background-size: 100% 100%;
    }
  }
  .chart_wrap {
    justify-content: space-between;
    align-items: center;
    padding: 0 0.8rem 0.2rem;
    .chart_img {
      width: 2.45rem;
      img {
        display: block;
        width: 100%;
      }
    }
    .chart_info {
      font-size: 12px;
      color: #666666;
      span {
        display: inline-block;
        width: 0.6rem;
        color: #666666;
        text-align: right;
      }
      .btn_unit {
        width: 1.58rem;
        margin: 0.04rem 0.1rem;
        border: 1px solid #cccccc;
        border-radius: 25px;
        border-radius: 25px;
        font-size: 15px;
        color: #666666;
      }
      .active {
        background: #ffe0e0;
        border: 1px solid #ffe0e0;
        color: #d41045;
      }
    }
  }
  .hc_txt {
    background: #f9da9e;
    margin: 0.3rem;
    padding: 0.3rem;
    font-size: 15px;
    color: #733a01;
    font-size: 15px;
    color: #733a01;
    text-align: center;
  }
}
.hc_footer {
  margin-top: 20px;
  text-align: center;
  .btn_confirm {
    background: #d41045;
    border-radius: 0.04rem;
    border-radius: 0.04rem;
    color: #fff;
    width: 1.6rem;
    margin: 0 0.2rem;
  }
}
.modal {
  .home_header {
    padding: 0 0.3rem 0.2rem;
  }
}
</style>